//
//  HMSportMainViewController.m
//  HMBest22
//
//  Created by Apple on 17/1/9.
//  Copyright © 2017年 Apple. All rights reserved.
//  运动主要的控制器

#import "HMSportMainViewController.h"
#import "HMSportSportingViewController.h"
#import "HMSportTracking.h"
@interface HMSportMainViewController ()


@end

@implementation HMSportMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}

- (IBAction)startSport:(UIButton *)sender
{
//    NSLog(@"%zd",sender.tag);
    HMSportType sportType = sender.tag;
    // 1.加载HMSportSorting.storyboard  参数2:设为nil表示从mainBundle
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"HMSportSporting" bundle:nil];
    // 2.获取对应的控制器
    HMSportSportingViewController *sportSportingVC = storyboard.instantiateInitialViewController;
    // 3.传递数据
    sportSportingVC.sportType = sportType;
    // 跳转到运动监控控制器
    [self presentViewController:sportSportingVC animated:YES completion:nil];
}

@end
